package com.neusoft.demo.test;



public class testDao {

	//查询全部商品类别
//	public static void queryGoods_type() throws IOException {
//		//访问数据库
//		Reader reader = Resources.getResourceAsReader("mybatis-config.xml");
//		SqlSessionFactory build = new SqlSessionFactoryBuilder().build(reader);
//		SqlSession session = build.openSession();
//		
//	//	goods_typeMapper mapper = session.getMapper(goods_typeMapper.class);
//		List<goods_type> queryGoods_type = mapper.queryGoods_type();
//		System.out.println(queryGoods_type);
//		session.close();
//	}
	
	//按Type_id查询
//	public static void queryGoods_typeById() throws IOException {
//		Reader reader = Resources.getResourceAsReader("mybatis-config.xml");
//		SqlSessionFactory build = new SqlSessionFactoryBuilder().build(reader);
//		SqlSession session = build.openSession();
//		
//		goods_typeMapper mapper = session.getMapper(goods_typeMapper.class);
//		List<goods_type> queryGoods_typeById = mapper.queryGoods_typeById(1);
//		System.out.println(queryGoods_typeById);
//		session.close();
//	}
		
	//按Type_id修改
	public static void updateGoods_type() {
		
	}
		
	//按Type_id删除
	public static void deleteGoods_type() {
		
	}
		
	//插入
	public static void addGoods_type() {
		
	}
	

}
